#include "stdafx.h"
#include "GameTest.hpp"

GameTest::GameTest() : rh::Game("RH Testbed a0.01", 254, 254)
{
	_texture.loadFromFile("Resources\\duelSpritesheet.gif");
	_frameTest = rh::Frame(&_texture, sf::IntRect(0,0,615,745));
}


GameTest::~GameTest(void)
{
}

void GameTest::GameLoop(void)
{
	sf::Event currentEvent;
	_renderWindow.pollEvent(currentEvent);
	_renderWindow.clear();
	//Add all drawing and updating logic here
	sf::Time elapsedTime = GetElapsedTime();
	_frameTest.Draw(_renderWindow, sf::RenderStates::Default);
	_renderWindow.display();
	if (currentEvent.type == sf::Event::Closed)
		_gameState = Game::GameState::Exiting;
}
